﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

namespace MishraReader
{
    public enum ViewSubscriptionFilter
    {
        Unread,
        Starred,
        Shared,
        All,
    }

    [DebuggerDisplay("Label = {_label}")]
    public class MenuHeader : Notifier
    {
        private int _count;
        private bool _isCountVisible;
        private string _label;

        public MenuHeader(string label, ViewSubscriptionFilter viewSubscriptionFilter, bool isCountVisible = false)
        {
            ViewSubscriptionFilter = viewSubscriptionFilter;
            Label = label;
            IsCountVisible = isCountVisible;
        }

        public int Count
        {
            get { return _count; }
            set
            {
                Set(ref _count, value);
            }
        }

        public bool IsCountVisible
        {
            get { return _isCountVisible; }
            set
            {
                Set(ref _isCountVisible, value);
            }
        }

        public string Label
        {
            get { return _label; }
            set
            {
                Set(ref _label, value);
            }
        }

        public ViewSubscriptionFilter ViewSubscriptionFilter { get; private set; }
    }
}